ClientOptionsType
import { ClientOptionsType } from "@hyper-fetch/core"
Description
Configuration setup for the client
Defined in client/client.types.ts:13
Preview
type ClientOptionsType<C> = {
adapter: BaseAdapterType;
appManager: (client: C) => C[appManager];
cache: (client: C) => C[cache];
fetchDispatcher: (client: C) => C[submitDispatcher];
submitDispatcher: (client: C) => C[fetchDispatcher];
url: string;
}
Structure
{
adapter: (request: RequestInstance, requestId: string, DO_NOT_USE?: [object Object]) => Promise<ResponseReturnType<any, any, any>>;
appManager: (client: C) => C[appManager];
cache: (client: C) => C[cache];
fetchDispatcher: (client: C) => C[submitDispatcher];
submitDispatcher: (client: C) => C[fetchDispatcher];
url: string;
}